[gd_scene load_steps=19 format=3 uid="uid://misybu8uqy54"]

[ext_resource type="Script" path="res://Features/Main/Game.cs" id="1_ad3ry"]
[ext_resource type="Script" path="res://Features/SceneStructure/GameStorage.cs" id="2_orsse"]
[ext_resource type="Script" path="res://Features/SceneStructure/ScreenScenesStorage.cs" id="3_77gth"]
[ext_resource type="Script" path="res://Features/Main/GameState.cs" id="3_ssq70"]
[ext_resource type="Script" path="res://Features/Main/Curtain.cs" id="4_dfivn"]
[ext_resource type="Script" path="res://Features/SceneStructure/EntityScenesStorage.cs" id="4_t4dgv"]
[ext_resource type="PackedScene" uid="uid://qlk1d5pf0qli" path="res://Features/GameStates/GameWorld/Entity/Character/Character.tscn" id="5_f7t8s"]
[ext_resource type="Script" path="res://Features/SceneStructure/StateScenesStorage.cs" id="5_fmvgb"]
[ext_resource type="PackedScene" uid="uid://bd45gs5odlcc5" path="res://Features/GameStates/GameWorld/Entity/Character/Player/Player.tscn" id="6_gdwvv"]
[ext_resource type="Script" path="res://Features/SceneStructure/EffectScenesStorage.cs" id="6_s41ao"]
[ext_resource type="PackedScene" uid="uid://pn8amjnck7bs" path="res://Features/GameStates/GameWorld/Entity/Character/Enemy/Enemy.tscn" id="7_8kdtb"]
[ext_resource type="PackedScene" uid="uid://c0n5ku46h36eq" path="res://Features/GameStates/GameWorld/Entity/Character/Enemy/Boss.tscn" id="8_66knw"]
[ext_resource type="PackedScene" uid="uid://cd4w3embrkgps" path="res://Features/GameStates/MainMenu/MainMenu.tscn" id="8_tsero"]
[ext_resource type="PackedScene" uid="uid://dhf3u2ls7r0ca" path="res://Features/GameStates/GameWorld/World.tscn" id="12_0imgk"]

[sub_resource type="Gradient" id="Gradient_0nwa5"]
colors = PackedColorArray(0, 0, 0, 0, 0, 0, 0, 1)

[sub_resource type="GradientTexture1D" id="GradientTexture1D_r0oxa"]
gradient = SubResource("Gradient_0nwa5")

[sub_resource type="Gradient" id="Gradient_7xbek"]
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 1)

[sub_resource type="GradientTexture1D" id="GradientTexture1D_c2qp2"]
gradient = SubResource("Gradient_7xbek")

[node name="Game" type="Node2D" node_paths=PackedStringArray("_gameState", "_gameStorage", "_curtain")]
script = ExtResource("1_ad3ry")
_gameState = NodePath("State")
_gameStorage = NodePath("Storages")
_curtain = NodePath("ScreenHelpers/Curtain")

[node name="Storages" type="Node" parent="." node_paths=PackedStringArray("Effects", "Entities", "Screens", "States")]
script = ExtResource("2_orsse")
Effects = NodePath("Effects")
Entities = NodePath("Entities")
Screens = NodePath("Screens")
States = NodePath("States")

[node name="Screens" type="Node" parent="Storages"]
script = ExtResource("3_77gth")

[node name="Entities" type="Node" parent="Storages"]
script = ExtResource("4_t4dgv")
Character = ExtResource("5_f7t8s")
Player = ExtResource("6_gdwvv")
Enemy = ExtResource("7_8kdtb")
Boss = ExtResource("8_66knw")

[node name="States" type="Node" parent="Storages"]
script = ExtResource("5_fmvgb")
MainMenuState = ExtResource("8_tsero")
GameWorldState = ExtResource("12_0imgk")

[node name="Effects" type="Node" parent="Storages"]
script = ExtResource("6_s41ao")

[node name="State" type="Node2D" parent="."]
script = ExtResource("3_ssq70")

[node name="MainMenu" parent="State" instance=ExtResource("8_tsero")]

[node name="ScreenHelpers" type="CanvasLayer" parent="."]

[node name="Curtain" type="Control" parent="ScreenHelpers" node_paths=PackedStringArray("StateContainer", "GradientTexture", "FillTexture")]
visible = false
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("4_dfivn")
StateContainer = NodePath("../../State")
GradientTexture = NodePath("GradientTexture")
FillTexture = NodePath("FillTexture")

[node name="GradientTexture" type="TextureRect" parent="ScreenHelpers/Curtain"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource("GradientTexture1D_r0oxa")

[node name="FillTexture" type="TextureRect" parent="ScreenHelpers/Curtain"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource("GradientTexture1D_c2qp2")
